package com.ys.erp.entity.data.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author 南山
 * @date 2025/09/19 18:02
 */
@Data
@Accessors(chain = true)
@TableName(value = "t_activity_turnable_join_log")
public class ActivityTurntableJoinLog {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "user_id")
    private Long userId;

    @TableField(value = "activity_id")
    private Long activityId;

    @TableField(value = "is_winner")
    private Integer isWinner;

    @TableField(value = "prized_id")
    private String prizedId;

    @TableField(value = "version")
    @Version
    private String version;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time", update = "now()")
    private LocalDateTime updateTime;
}
